<template>
  <div id="app">
    <div class="top">
      <div v-for="(item, index) in arr">
        <input type="checkbox" :value="item" v-model="arr1" /><span>{{
          item
        }}</span>
      </div>
    </div>
    <div class="bottom">
      <ul>
        <li v-for="(it, ind) in arr1">{{ it }}</li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      arr1: [],
    };
  },
};
</script>

<style>
.top {
  display: flex;
}
</style>